import React from 'react'
import { Switch, Route, Redirect, Link } from 'react-router-dom'
import Payment from './Payment'
import PrePayment from './PrePayment'
import Finish from './Finish'
import Warning from './Warning'
import Rate from './Rate'
import Inspect from './Inspect'
import PaymentCheck from './Payment/PaymentCheck'
import AddWarning from './Warning/AddWarning'
import PrePaymentCheck from './PrePayment/PrePaymentCheck'
import RateAdd from './Rate/RateAdd'
import FinishCheck from './Finish/FinishCheck'

export default function AfterLoan() {
    return (
        <div>
            {/* <Tab /> */}
            {/* <Link to='/home/afterloan/payment'>还款管理</Link>
            <br></br>
            <Link to='/home/afterloan/prepayment'>提前还款</Link>
            <br></br>
            <Link to='/home/afterloan/inspect'>贷后检查</Link>
            <br></br>
            <Link to='/home/afterloan/warning'>贷后预警</Link>
            <br></br>
            <Link to='/home/afterloan/rate'>利率变更</Link>
            <br></br>
            <Link to='/home/afterloan/finish'>贷款结项</Link> */}

            <Switch>
                <Route exact path='/home/afterloan'>
                    <Redirect to='/home/afterloan/payment' />
                </Route>
                <Route path='/home/afterloan/payment' component={Payment}></Route>
                <Route path='/home/afterloan/prepayment' component={PrePayment}></Route>
                <Route path='/home/afterloan/inspect' component={Inspect}></Route>
                <Route path='/home/afterloan/warning' component={Warning}></Route>
                <Route path='/home/afterloan/rate' component={Rate}></Route>
                <Route path='/home/afterloan/finish' component={Finish}></Route>

                <Route path='/home/afterloan/check' component={PaymentCheck}></Route>
                <Route path='/home/afterloan/prepaymentcheck' component={PrePaymentCheck}></Route>
                <Route path='/home/afterloan/finishcheck' component={FinishCheck}></Route>

                <Route path='/home/afterloan/ratecheck' component={RateAdd}></Route>
                <Route path='/home/afterloan/addwarning' component={AddWarning}></Route>

            </Switch>
        </div>
    )
}
